extends ./layout
block style
    link(href=`/public/stylesheets/dymap.css?${vCode}`, rel='stylesheet')
block script  
    script(src='https://webapi.amap.com/maps?v=1.4.10&key=f842f480ae649d8cecb6bf0ede5f21a4', type='text/javascript')
    script(src='//webapi.amap.com/ui/1.0/main.js?v=1.0.11')
    script(src=`/public/javascripts/map.js?${vCode}`, type='text/javascript') 
block content
    include components/map/footerMenu
    include components/map/footerLine
    if serverListPage.data && serverListPage.data.rows.length > 0
        - const parkList = serverListPage.data.rows;
        if sid
            each item in parkList
                if item.id == sid
                    .map-header-park.clearfix
                        .header-park-name.fl=item.parkName
                        .header-park-name.fl
                    #parkPintList.map-park-point
                        .park-name(data-id=item.id,data-url=item.linkAddr)=item.parkName
                    .map-flow-tabs
                        a#goParkDetail(href=(parkList[0].linkAddr || 'javascript:;')) 景区概况
                        a#showLines(href='javascript:;') 导游导览
                        a(href='/publicMap/search') 搜索    
        else
            #choicePark.map-header-park.clearfix
                //- .header-park-name.fl=parkList[0].parkName
                .header-park-name.fl
                i.xx-icon.icon-more.fr
            #parkPintList.map-park-point
                each item in parkList
                    .park-name(data-id=item.id,data-url=item.linkAddr)=item.parkName
            .map-flow-tabs
                a#goParkDetail(href=(parkList[0].linkAddr || 'javascript:;')) 景区概况
                a#showLines(href='javascript:;') 导游导览
                a(href='/publicMap/search') 搜索
    else 
        #choicePark.map-header-park.clearfix
            .header-park-name.fl 没有景区数据

    #sortResult(data-sort=sortPosition)

    #container
    #mask.mask
    //- 底部菜单
    +menus() 

    +lineList()
    +linePoints()





